﻿

 
using HBase;
using hCommand;
using hconnect;
using System;

namespace hCommand {
    public abstract class SingleCraneAllocateJobHX<T> : SingleTaskAllocateJobTask<T> where T : BaseTask {

        protected IWCSServer taskServer = WMSDalFactray.getDal<IWCSServer>();
         
        public SingleCraneAllocateJobHX() {
            time = 200;
        }

        protected override long oneMaxTime() {
            return 12000;//每次成功sleep10秒
        }

        
      
        public override bool chechModeDB() {
            BParam p = taskServer.getParam("crane" , getCNo(), "overStop");

            //验证垛机mechine_status 表中overstop 位1 代表循环停止

            if( p.v == 1 ) {
                console(InfoCode.consleOnly_Crane_overStop, "垛机循环停止");
                return false;
            }
            return true;
        }





    }
}
